%%%%%%%% Credits

The following files (data and code)

- SgnQ.m

in this folder are borrowed and modified from the open-source repository associated with:

Pengsheng Ji, Jiashun Jin, Zheng Tracy Ke, and Wanshan Li. Co-citation and co-authorship
networks for statisticians (with discussions). J. Bus. Econ. Statist., 40(2), 2022.

######### Included functions

Chi2(A): computes Chi2 pvalues, unstandardized value, and standardized value on input adjacency matrix A

SgnQ(A): computes SgnQ pvalues, unstandardized value, and standardized value on input adjacency matrix A

######### Scripts

symmetric_SBM_tests: Set the parameters n (graph size), N (small community size), and c (background probability), and then run to produce a plot of power curves of SgnQ and Chi2 for symmetric SBM testing

asymmetric_SBM_tests: Set the parameters n (graph size), N (small community size), and c (background probability), and then run to produce a plot of power curves of SgnQ and Chi2 for asymmetric SBM testing